"The Messagebox is the most commonly used Windows dialog, and is used when you want to display information and retrieve an action as selected with one of up to three push buttons.
You can also display one of a standard set of icons, or one a set of icons built into PiXCL, to define the type of messagebox, and set the string that appears in the messagebox title bar.
Messageboxes appear centralised in your Windows screen, and use the system default text font that is also used with the menu. This font cannot be changed from within PiXCL.
Click on the menu items above to see the various types of Messagebox available to you with the PiXCL language.",
LEFT)
Goto Wait_for_Input
PXL_One_Button:
MessageBox(OKCANCEL,1,ICON01,
"PiXCL has twenty-one built-in icons that can be used in the MessageBox
command, when the system icons are not appropriate for your program.
This is icon #01, and is the default icon that appears in the task bar when
you minimize the window, and in the PiXCL title bar as the system button.
See also the DrawIcon command. If you have an icon editor, you can set
this up in the PiXCL MDI Editor preferences, and replace any of the icons,
so long as they are 32x32 pixels.
All MessageBoxes can have up to three buttons.",
"Other Icons",Res)
If Res = 2 Then Goto Wait_for_Input
MessageBox(OK,1,ICON02,"PiXCL icon #02. Use to prompt for floppy to hard disk transfers.","Other Icons",Res)
MessageBox(OK,1,ICON03,"PiXCL icon #03. Use when a CD-ROM operation needs a prompt. ","Other Icons",Res)
MessageBox(OK,1,ICON04,"PiXCL icon #04. A folder icon.","Other Icons",Res)
MessageBox(OKCANCEL,1,ICON05,
"PiXCL icon #05. This is the PXL_make Runtime builder icon.",
"Other Icons",Res)
If Res = 2 Then Goto Wait_for_Input
MessageBox(OK,1,ICON06,"PiXCL icon #06. Draw with a pencil.","Other Icons",Res)
MessageBox(OK,1,ICON07,"PiXCL icon #07. Hard disk operation.","Other Icons",Res)
MessageBox(OK,1,ICON08,"PiXCL icon #08. Floppy or removable disk operation.","Other Icons",Res)
MessageBox(OK,1,ICON09,"PiXCL icon #09. Look up reference manuals.","Other Icons",Res)
MessageBox(OK,1,ICON10,"PiXCL icon #10. Prompt for a floppy disk.","Other Icons",Res)
MessageBox(YESNO,1,ICON11,"PiXCL icon #11. Property page or text document.","Other Icons",Res)